load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "java",
    srcs = [
        "any.go",
        "bool.go",
        "bytes.go",
        "duration.go",
        "enum.go",
        "file.go",
        "map.go",
        "message.go",
        "msg.go",
        "none.go",
        "num.go",
        "oneof.go",
        "register.go",
        "repeated.go",
        "required.go",
        "string.go",
        "timestamp.go",
        "unimplemented.go",
        "wrapper.go",
    ],
    importpath = "github.com/envoyproxy/protoc-gen-validate/templates/java",
    visibility = ["//visibility:public"],
    deps = [
        "//templates/shared",
        "@com_github_iancoleman_strcase//:strcase",
        "@com_github_lyft_protoc_gen_star//:protoc-gen-star",
        "@com_github_lyft_protoc_gen_star//lang/go",
        "@org_golang_google_protobuf//types/known/durationpb",
        "@org_golang_google_protobuf//types/known/timestamppb",
    ],
)

alias(
    name = "go_default_library",
    actual = ":java",
    deprecation = "Use :java instead of :go_default_library.  Details about the new naming convention: https://github.com/bazelbuild/bazel-gazelle/pull/863",
    visibility = ["//visibility:public"],
)
